using System;
using System.Collections.Generic;
using OS.Infrastructure.Domain;


namespace Domain
{
    public class Url : BaseModel<Account>,IEntity
    {
        public virtual String LongUrl { get; set; }

        public virtual String ShortKey { get; set; }

        public virtual DateTime Date { get; set; }

        public virtual int ClickUrl { get;private set; }

        public virtual Account Account { get; set; }

        public virtual int Id { get; set; }

        public virtual string Anonymous { get; set; } 

        public virtual void Click()
        {
            ClickUrl++;
        }
    }
}